/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;

/** Generated Model for BCS_ACRInputFormAppend1
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_BCS_ACRInputFormAppend1 extends PO implements I_BCS_ACRInputFormAppend1, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130506L;

    /** Standard Constructor */
    public X_BCS_ACRInputFormAppend1 (Properties ctx, int BCS_ACRInputFormAppend1_ID, String trxName)
    {
      super (ctx, BCS_ACRInputFormAppend1_ID, trxName);
      /** if (BCS_ACRInputFormAppend1_ID == 0)
        {
			setBCS_ACRInputFormAppend1_ID (0);
			setBCS_ReportingForm (null);
// 10000006
			setC_BPartner_ID (0);
// @C_BPartner_ID@
			setFI_BIN_IIN (null);
// @SQL=select fi_bin_iin from adempiere.c_bpartner where c_bpartner_id =@C_BPartner_ID@
			setFullAddress (null);
// @SQL=select (trim(l.city) 
||  case when l.address1 is null then '' else (', ' || trim(l.address1)) end 
||  case when l.address2 is null then '' else (', ' || trim(l.address2)) end 
||  case when l.address3 is null then '' else (', ' || trim(l.address3)) end 
) as fulladdress
from adempiere.c_bpartner_location bl 
left join adempiere.c_location l on l.c_location_id = bl.c_location_id
where bl.c_bpartner_id=@C_BPartner_ID@
        } */
    }

    /** Load Constructor */
    public X_BCS_ACRInputFormAppend1 (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_BCS_ACRInputFormAppend1[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set BCS_ACRInputFormAppend1_ID.
		@param BCS_ACRInputFormAppend1_ID BCS_ACRInputFormAppend1_ID	  */
	public void setBCS_ACRInputFormAppend1_ID (int BCS_ACRInputFormAppend1_ID)
	{
		if (BCS_ACRInputFormAppend1_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_BCS_ACRInputFormAppend1_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_BCS_ACRInputFormAppend1_ID, Integer.valueOf(BCS_ACRInputFormAppend1_ID));
	}

	/** Get BCS_ACRInputFormAppend1_ID.
		@return BCS_ACRInputFormAppend1_ID	  */
	public int getBCS_ACRInputFormAppend1_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_BCS_ACRInputFormAppend1_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set BCS_ACRInputForm_Company ID.
		@param BCS_ACRInputForm_Company_ID BCS_ACRInputForm_Company ID	  */
	public void setBCS_ACRInputForm_Company_ID (int BCS_ACRInputForm_Company_ID)
	{
		if (BCS_ACRInputForm_Company_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_BCS_ACRInputForm_Company_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_BCS_ACRInputForm_Company_ID, Integer.valueOf(BCS_ACRInputForm_Company_ID));
	}

	/** Get BCS_ACRInputForm_Company ID.
		@return BCS_ACRInputForm_Company ID	  */
	public int getBCS_ACRInputForm_Company_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_BCS_ACRInputForm_Company_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set BCS_Activities.
		@param BCS_Activities BCS_Activities	  */
	public void setBCS_Activities (String BCS_Activities)
	{
		set_Value (COLUMNNAME_BCS_Activities, BCS_Activities);
	}

	/** Get BCS_Activities.
		@return BCS_Activities	  */
	public String getBCS_Activities () 
	{
		return (String)get_Value(COLUMNNAME_BCS_Activities);
	}

	/** Set BCS_CreationPurposes.
		@param BCS_CreationPurposes BCS_CreationPurposes	  */
	public void setBCS_CreationPurposes (String BCS_CreationPurposes)
	{
		set_Value (COLUMNNAME_BCS_CreationPurposes, BCS_CreationPurposes);
	}

	/** Get BCS_CreationPurposes.
		@return BCS_CreationPurposes	  */
	public String getBCS_CreationPurposes () 
	{
		return (String)get_Value(COLUMNNAME_BCS_CreationPurposes);
	}

	/** BCS_FormOfIncorporation AD_Reference_ID=1000130 */
	public static final int BCS_FORMOFINCORPORATION_AD_Reference_ID=1000130;
	/** Joint-stock company = JSC */
	public static final String BCS_FORMOFINCORPORATION_Joint_StockCompany = "JSC";
	/** Limited liability company = LLC */
	public static final String BCS_FORMOFINCORPORATION_LimitedLiabilityCompany = "LLC";
	/** Set BCS_FormOfIncorporation.
		@param BCS_FormOfIncorporation BCS_FormOfIncorporation	  */
	public void setBCS_FormOfIncorporation (String BCS_FormOfIncorporation)
	{

		set_Value (COLUMNNAME_BCS_FormOfIncorporation, BCS_FormOfIncorporation);
	}

	/** Get BCS_FormOfIncorporation.
		@return BCS_FormOfIncorporation	  */
	public String getBCS_FormOfIncorporation () 
	{
		return (String)get_Value(COLUMNNAME_BCS_FormOfIncorporation);
	}

	/** Set BCS_GoverningAgencyName.
		@param BCS_GoverningAgencyName BCS_GoverningAgencyName	  */
	public void setBCS_GoverningAgencyName (String BCS_GoverningAgencyName)
	{
		set_Value (COLUMNNAME_BCS_GoverningAgencyName, BCS_GoverningAgencyName);
	}

	/** Get BCS_GoverningAgencyName.
		@return BCS_GoverningAgencyName	  */
	public String getBCS_GoverningAgencyName () 
	{
		return (String)get_Value(COLUMNNAME_BCS_GoverningAgencyName);
	}

	/** Set BCS_HistoryOfCreation.
		@param BCS_HistoryOfCreation BCS_HistoryOfCreation	  */
	public void setBCS_HistoryOfCreation (String BCS_HistoryOfCreation)
	{
		set_Value (COLUMNNAME_BCS_HistoryOfCreation, BCS_HistoryOfCreation);
	}

	/** Get BCS_HistoryOfCreation.
		@return BCS_HistoryOfCreation	  */
	public String getBCS_HistoryOfCreation () 
	{
		return (String)get_Value(COLUMNNAME_BCS_HistoryOfCreation);
	}

	/** Set BCS_ReorganizationInfo.
		@param BCS_ReorganizationInfo BCS_ReorganizationInfo	  */
	public void setBCS_ReorganizationInfo (String BCS_ReorganizationInfo)
	{
		set_Value (COLUMNNAME_BCS_ReorganizationInfo, BCS_ReorganizationInfo);
	}

	/** Get BCS_ReorganizationInfo.
		@return BCS_ReorganizationInfo	  */
	public String getBCS_ReorganizationInfo () 
	{
		return (String)get_Value(COLUMNNAME_BCS_ReorganizationInfo);
	}

	/** BCS_ReportingForm AD_Reference_ID=1000131 */
	public static final int BCS_REPORTINGFORM_AD_Reference_ID=1000131;
	/** consolidated = 10000005 */
	public static final String BCS_REPORTINGFORM_Consolidated = "10000005";
	/** individual = 10000006 */
	public static final String BCS_REPORTINGFORM_Individual = "10000006";
	/** Set BCS_ReportingForm.
		@param BCS_ReportingForm BCS_ReportingForm	  */
	public void setBCS_ReportingForm (String BCS_ReportingForm)
	{

		set_Value (COLUMNNAME_BCS_ReportingForm, BCS_ReportingForm);
	}

	/** Get BCS_ReportingForm.
		@return BCS_ReportingForm	  */
	public String getBCS_ReportingForm () 
	{
		return (String)get_Value(COLUMNNAME_BCS_ReportingForm);
	}

	public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getC_BPartner_ID(), get_TrxName());	}

	/** Set Business Partner .
		@param C_BPartner_ID 
		Identifies a Business Partner
	  */
	public void setC_BPartner_ID (int C_BPartner_ID)
	{
		if (C_BPartner_ID < 1) 
			set_Value (COLUMNNAME_C_BPartner_ID, null);
		else 
			set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
	}

	/** Get Business Partner .
		@return Identifies a Business Partner
	  */
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Date.
		@param Date1 
		Date when business is not conducted
	  */
	public void setDate1 (Timestamp Date1)
	{
		set_Value (COLUMNNAME_Date1, Date1);
	}

	/** Get Date.
		@return Date when business is not conducted
	  */
	public Timestamp getDate1 () 
	{
		return (Timestamp)get_Value(COLUMNNAME_Date1);
	}

	/** Set EMail Address.
		@param EMail 
		Electronic Mail Address
	  */
	public void setEMail (String EMail)
	{
		set_Value (COLUMNNAME_EMail, EMail);
	}

	/** Get EMail Address.
		@return Electronic Mail Address
	  */
	public String getEMail () 
	{
		return (String)get_Value(COLUMNNAME_EMail);
	}

	/** Set FI_BIN/IIN.
		@param FI_BIN_IIN 
		Business identification number/Individual identification number
	  */
	public void setFI_BIN_IIN (String FI_BIN_IIN)
	{
		set_Value (COLUMNNAME_FI_BIN_IIN, FI_BIN_IIN);
	}

	/** Get FI_BIN/IIN.
		@return Business identification number/Individual identification number
	  */
	public String getFI_BIN_IIN () 
	{
		return (String)get_Value(COLUMNNAME_FI_BIN_IIN);
	}

	/** Set FI_TIN.
		@param FI_TIN 
		Taxpayer identification number 
	  */
	public void setFI_TIN (String FI_TIN)
	{
		set_Value (COLUMNNAME_FI_TIN, FI_TIN);
	}

	/** Get FI_TIN.
		@return Taxpayer identification number 
	  */
	public String getFI_TIN () 
	{
		return (String)get_Value(COLUMNNAME_FI_TIN);
	}

	/** Set FullAddress.
		@param FullAddress FullAddress	  */
	public void setFullAddress (String FullAddress)
	{
		set_Value (COLUMNNAME_FullAddress, FullAddress);
	}

	/** Get FullAddress.
		@return FullAddress	  */
	public String getFullAddress () 
	{
		return (String)get_Value(COLUMNNAME_FullAddress);
	}

	/** Set Number2.
		@param Number2 Number2	  */
	public void setNumber2 (String Number2)
	{
		set_Value (COLUMNNAME_Number2, Number2);
	}

	/** Get Number2.
		@return Number2	  */
	public String getNumber2 () 
	{
		return (String)get_Value(COLUMNNAME_Number2);
	}

	/** Set Phone.
		@param Phone 
		Identifies a telephone number
	  */
	public void setPhone (String Phone)
	{
		set_Value (COLUMNNAME_Phone, Phone);
	}

	/** Get Phone.
		@return Identifies a telephone number
	  */
	public String getPhone () 
	{
		return (String)get_Value(COLUMNNAME_Phone);
	}

	/** Set URL.
		@param URL 
		Full URL address - e.g. http://www.adempiere.org
	  */
	public void setURL (String URL)
	{
		set_Value (COLUMNNAME_URL, URL);
	}

	/** Get URL.
		@return Full URL address - e.g. http://www.adempiere.org
	  */
	public String getURL () 
	{
		return (String)get_Value(COLUMNNAME_URL);
	}
}